package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.ZjHntScaleRef;
import com.ruoyi.zhgd.domain.vo.ZjHntScaleRefVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 配比   自建-混凝土-配比Mapper接口
 *
 * @author yhy
 * @date 2023-09-22
 */
public interface ZjHntScaleRefMapper extends BaseMapperPlus<ZjHntScaleRefMapper, ZjHntScaleRef, ZjHntScaleRefVo> {

    @DataPermission({
        @DataColumn(key = "deptName", value = "sde.dept_id"),
    })
    List<Map> hntScaleList(Page page,@Param("params") Map<String, Object> params);

    ZjHntScaleRef selectByMatchingId(@Param("recipe") String recipe);

    ZjHntScaleRef selectByType(@Param("recipe") String recipe);

    List<ZjHntScaleRef> selectByList(@Param("id") Long id);

    void updateByDeleteId(@Param("id")String id);

}
